package com.lebang.medicalInquiry.model.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 **/
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Member {
    /**
     * 用户的id
     */
    private Integer id;

    /**
     * 会员的uuid
     */
    private String uuid;

    /**
     * 生成token时的时间戳
     */
    private long timestamp;


    @Override
    public String toString() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id", this.id);
        jsonObject.put("uuid", this.uuid);
        jsonObject.put("timestamp", this.timestamp);
        return jsonObject.toJSONString();
    }
}
